{% extends "base.html" %}
{% block title %}{{ user['nickname'] }}{% end %}

{% block head %}
{% end %}
{% block body %}
<div class="container">
    <div class="row">
        <div class="span10">

<form action="" method="post">
    <label>nickname</label>
    <input name="nickname" type="text" value="{{ user['nickname'] }}">
    {% if not userdetail %}
    <label>intro</label>
    <input name="intro" type="text">
    <label>gender</label>
    <input name="gender" type="text">
    <label>birthday</label>
    <input name="birthday" type="text">
    <label>hometown</label>
    <input name="hometown" type="text">    
    <label>city</label>
    <input name="city" type="text"> 
    <label>job</label>
    <input name="job" type="text">
    {% else %}
    <label>intro</label>
    <input name="intro" type="text" value="{{ escape(userdetail['intro']) }}">
    <label>gender</label>
    <input name="gender" type="text" value="{{ escape(userdetail['gender']) }}">
    <label>birthday</label>
    <input name="birthday" type="text" value="{{ escape(userdetail['birthday']) }}">
    <label>hometown</label>
    <input name="hometown" type="text" value="{{ escape(userdetail['hometown']) }}">    
    <label>city</label>
    <input name="city" type="text" value="{{ escape(userdetail['city']) }}"> 
    <label>job</label>
    <input name="job" type="text" value="{{ escape(userdetail['job']) }}">    
    {% end %}
    <button type="submit">Submit</button>
</form>

</div>
</div>
</div>
{% end %}
